<template>
  <view class="fund">
    <image
      class="bg"
      :src=" defStatus === EnumFund.STATUS ? '/static/fund/index.png' : '/static/fund/result.png'"
      mode="widthFix"
    ></image>
    <FundInputfrom  v-if="defStatus === EnumFund.STATUS" v-model:defStatus="defStatus"  v-model:yangLaoJin="yangLaoJin"/>
    <Result v-else v-model:defStatus="defStatus" :yangLaoJin="yangLaoJin" />
  </view>
  <Recommend :top='105'/>
  <ToDY />
</template>

<script setup lang="ts">
import FundInputfrom from "./components/FundInput.vue";
import Result from "./components/Result.vue";
import {EnumFund} from "./content";
import ToDY from "@/components/ToDY/ToDY.vue";
import Recommend from "@/components/Recommend/Recommend.vue";
const defStatus = ref(EnumFund.STATUS)
const yangLaoJin = ref(0)
</script>
<style lang="scss" scoped>
.fund{
    width: 100%;
    height: 100%;
    .bg{
        width: 100%;
      
    }
}
</style>
